import { Component } from 'react'; 
import Layout1 from '../../layouts/Layout1.js';
import { Link } from 'react-router-dom'

export default class Rtest01 extends Component {
	componentDidMount(nextProps, prevState) {
		console.log(this.props.location.query);
	}
    render() {
    	return (
			<Layout1>
				<Link to="/Rtest02">前往Rtest02-不带参</Link>
				<hr />
				<Link to={{ pathname : '/Rtest02' , query : { name : 'aa1' }}}>前往Rtest02-带参</Link>
			</Layout1>
		);
    }
};
